package com.gg.hc.service.impl;

import com.gg.common.mapper.DModuleDetailsMapper;
import com.gg.common.pojo.DModuleDetails;
import com.gg.common.pojo.DesignModule;
import com.gg.common.pojo.MDesignProcedureModule;
import com.gg.hc.service.DModuleDetailsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DModuleDetailsServiceImpl implements DModuleDetailsService {

    @Resource
    private DModuleDetailsMapper dModuleDetailsMapper;

    @Override
    public List<DModuleDetails> queryDModuleDetailsByParentId(int parentId) {
        return dModuleDetailsMapper.queryDModuleDetailsByParentId(parentId);
    }

    @Override
    public int redesign(List<DModuleDetails> dModuleDetails) {
        return dModuleDetailsMapper.redesign(dModuleDetails);
    }

    @Override
    public int updateDModuleDetails(List<DModuleDetails> dModuleDetails) {
        return dModuleDetailsMapper.updateDModuleDetails(dModuleDetails);
    }

    @Override
    public List<DesignModule> queryByParentId(int id) {
        return dModuleDetailsMapper.queryByParentId(id);
    }
}
